package com.z6school.manage.service;

import com.z6school.manage.common.pojo.PageObject;
import com.z6school.manage.common.pojo.UserDeptVo;
import com.z6school.manage.po.Teacher;
import com.z6school.manage.po.User;

import java.util.Map;

public interface UserService {

    PageObject<User> findAllMessage(String username, Integer pageCurrent);

    void validById(Integer id, Integer valid);

    /**保存用户对象*/
    int saveObject(User user,Integer[] roleIds);

    /**基于id查询用户及相关信息*/
    Map<String,Object> findObjectById(Integer userId) ;

    int updateObject(User user,Integer[] roleIds);

    int updatePassword(String password,
                       String newPassword,
                       String cfgPassword);


    //PageObject<UserDeptVo> findPageObjects(String username,Integer pageCurrent);

}
